package work.jame.blog.mapper;

import org.apache.ibatis.annotations.Param;
import work.jame.blog.pojo.ArticleTag;
import work.jame.blog.pojo.ArticleTagRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Jame
 * @since 2023-05-17
 */
public interface ArticleTagRelationMapper extends BaseMapper<ArticleTagRelation> {

    /**
     * 查询文章的标签根据文章id
     *
     * @param articleId 文章id
     * @return 标签集合
     */
    List<ArticleTag> queryArticleTagsByArticleId(@Param("articleId") Long articleId);
}
